import request from '@/utils/request'
import downloader from '@/utils/downloader'

//系统用户分页列表
export function adminUserListpatient(data) {
	return request({
		url: '/admin/user/patient/list',
		method: 'get',
		params: data
	})
}

//获取系统用户信息
export function adminUserInfo(data) {
	return request({
		url: '/user/userInfo',
		method: 'get',
		params: data
	})
}

//添加系统用户
export function patientSave(data) {
	return request({
		url: '/admin/user/patient/add',
		method: 'post',
		data
	})
}

//修改系统用户
export function patientUpdate(data) {
	return request({
		url: '/admin/user/patient/update',
		method: 'post',
		data
	})
}
//重置系统用户密码
export function resetPassword(data) {
	return request({
		url: '/admin/user/resetPassword',
		method: 'PUT',
		params: data
	})
}
//删除系统用户
export function patientRemove(data) {
	return request({
		url: '/admin/user/patient/delete',
		method: 'DELETE',
		params: data
	})
}
//批量导入系统用户
export function importpatient(data) {
	return request({
		url: '/admin/user/patient/importUser',
		method: 'post',
		data
	})
}

//导出系统用户
export function adminUserExport(data) {
	return downloader({
		url: '/admin/user/userExport',
		method: 'get',
		params: data
	})
}

//修改用户密码
export function updatePassword(data) {
	return request({
		url: '/admin/user/adminUser/updatePassword',
		method: 'post',
		params: data
	})
}

//下载模板
export function downloadTemplate(data) {
	return downloader({
		url: '/admin/user/patient/download',
		method: 'get',
		params: data
	})
}

//上传文件-共用
export function uploadFile(data) {
	return request({
		url: '/admin/user/adminUser/uploadFile',
		method: 'post',
		data
	})
}

// 获取治疗方案列表 
export function schemeList(data) {
	return  request({
		url: '/admin/plan/patientTreatment/schemeList',
		method: 'get',
		params: data
	})
}
// 添加治疗方案列表 
export function patientTreatmentAdd(data) {
	return request({
		url: '/admin/plan/patientTreatment/add',
		method: 'post',
		data
	})
}
// 启用关闭治疗方案 
export function patientTreatmentSwitch(data) {
	return request({
		url: '/admin/plan/patientTreatment/disabled',
		method: 'post',
		data
	})
}
// 单项目诊疗记录列表 
export function patientTreatmentRecordList(data) {
	return request({
		url: '/admin/plan/patientTreatment/recordList',
		method: 'GET',
		params:data
	})
}
// 治疗评价 

export function patientTreatmentEvaluation(data) {
	return request({
		url: '/client/therapistPlan/evaluation',
		method: 'GET',
		params:data
	})
}
// export function patientTreatmentEvaluation(data) {
// 	return request({
// 		url: '/admin/plan/patientTreatment/evaluation',
// 		method: 'GET',
// 		params:data
// 	})
// }

//待分配病患列表 
export function patientTreatmentWaitList(data) {
	return request({
		url: '/admin/plan/patientTreatment/waitList',
		method: 'GET',
		params:data
	})
}
// 获取治疗师列表 
export function therapistList(data) {
	return request({
		url: '/admin/user/therapist/therapistList',
		method: 'GET',
		params:data
	})
}
// 分配治疗师 

export function assignTherapist(data) {
	return request({
		url: '/admin/plan/patientTreatment/assignTherapist',
		method: 'POST',
		data
	})
}

// 治疗评判列表  



export function evaluationList(data) {
	return request({
		url: '/client/therapistPlan/evaluationList',
		method: 'GET',
		params:data
	})
}
